import assessCheckApi from './api'
import { axios } from '@/utils/request'

// 指导文件-分页查询
export function list(params){
  return axios({
    url: assessCheckApi.list,
    method:'get',
    params:{...params},
    url_1:'outside',
  })
}

// 获取对应法规列表-根据指导文件id
export function queryListFgByZdwjId(params){
    return axios({
      url: assessCheckApi.queryListFgByZdwjId,
      method:'get',
      params:{...params},
      url_1:'outside',
    })
}
// 获取章节（树形）列表-根据法规id
export function queryListZjTreeByFgId(params){
    return axios({
      url: assessCheckApi.queryListZjTreeByFgId,
      method:'get',
      params:{...params},
      url_1:'outside',
    })
}
// 获取条款分页列表-根据章节id
export function queryPageTkListByZjId(params){
    return axios({
      url: assessCheckApi.queryPageTkListByZjId,
      method:'get',
      params:{...params},
      url_1:'outside',
    })
}
// 获取模版分页列表-根据章节id
export function queryPageMbListByZjId(params){
    return axios({
      url: assessCheckApi.queryPageMbListByZjId,
      method:'get',
      params:{...params},
      url_1:'outside',
    })
}
// 新增法律法规
export function addFgmc(data){
    return axios({
      url: assessCheckApi.addFgmc,
      method:'post',
      data:{...data},
      url_1:'outside',
    })
}
// 删除法律法规
export function deleteFgmc(params){
    return axios({
      url: assessCheckApi.deleteFgmc,
      method:'delete',
      params:{...params},
      url_1:'outside',
    })
}
// 更新法律法规
export function updateFgmc(data){
    return axios({
      url: assessCheckApi.updateFgmc,
      method:'put' ,
      data:{...data},
      url_1:'outside',
    })
}
// 新增法律法规章节
export function addZjml(data){
    return axios({
      url: assessCheckApi.addZjml,
      method:'post',
      data:{...data},
      url_1:'outside',
    })
}
// 新增下级法律法规章节
export function addZjmlInSub(data){
    return axios({
      url: assessCheckApi.addZjmlInSub,
      method:'post',
      data:{...data},
      url_1:'outside',
    })
}
// 删除法律法规章节
export function deleteZjml(params){
    return axios({
      url: assessCheckApi.deleteZjml,
      method:'delete',
      params:{...params},
      url_1:'outside',
    })
}
// 新增法律法规条款
export function addTk(data){
    return axios({
      url: assessCheckApi.addTk,
      method:'post',
      data:{...data},
      url_1:'outside',
    })
}
// 新增法律法规描述模版
export function addMsmb(data){
    return axios({
      url: assessCheckApi.addMsmb,
      method:'post',
      data:{...data},
      url_1:'outside',
    })
}
// 更新法律法规条款
export function updateTk(data){
    return axios({
      url: assessCheckApi.updateTk,
      method:'put' ,
      data:{...data},
      url_1:'outside',
    })
}
// 更新法律法规描述模版
export function updateMsmb(data){
    return axios({
      url: assessCheckApi.updateMsmb,
      method:'put' ,
      data:{...data},
      url_1:'outside',
    })
}
// 新增法律法规指导文件
export function addZdwj(data){
    return axios({
      url: assessCheckApi.addZdwj,
      method:'post',
      data:{...data},
      url_1:'outside',
    })
}
// 更新法律法规指导文件
export function updateZdwj(data){
    return axios({
      url: assessCheckApi.updateZdwj,
      method:'put' ,
      data:{...data},
      url_1:'outside',
    })
}
// 指导文件-查看详情界面
export function viewZdwjByZdwjId(params){
    return axios({
      url: assessCheckApi.viewZdwjByZdwjId,
      method:'get',
      params:{...params},
      url_1:'outside',
    })
}
// 更新法律法规章节
export function updateZjml(data){
    return axios({
      url: assessCheckApi.updateZjml,
      method:'put',
      data:{...data},
      url_1:'outside',
    })
}
// 删除法律法规条款
export function deleteTk(params){
    return axios({
      url: assessCheckApi.deleteTk,
      method:'delete',
      params:{...params},
      url_1:'outside',
    })
}
// 删除法律法规描述模版
export function deleteMsmb(params){
    return axios({
      url: assessCheckApi.deleteMsmb,
      method:'delete',
      params:{...params},
      url_1:'outside',
    })
}
//查看指导文件详情界面-根据申请事项id
export function flfgviewInfo(params){
  return axios({
    url: assessCheckApi.flfgviewInfo,
    method:'get',
    params:{...params},
    url_1:'outside',
  })
}

